<template>
    <input type="button" value="-1" @click="dec">
    <h2>{{ count }}</h2>
    <input type="button" value="+1" @click="inc">
</template>

<script setup lang="ts">
import {ref} from "vue";
function dec() {
    count.value--
}
function inc() {
    count.value++
}
const count = ref(0);
</script>

<style scoped>

</style>
